import React from 'react'
import {render} from 'react-dom'
import {Router, Route} from 'react-router-dom'
import history from './modules/history'
import {createStore, applyMiddleware} from 'redux'
import thunk from 'redux-thunk'
import Home from './modules/home'
import {Provider} from 'react-redux'
import reducer from './reducers'
const store = createStore(reducer, applyMiddleware(thunk))
class App extends React.Component {
    render() {
        return (<Provider store={store}>
            <Router history={history}>
                <div>
                    <Route exact={true} path="/" render={() => (<Home/>)}/>
                </div>
            </Router>
        </Provider>)
    }
}
render((<App/>), document.getElementById('app'))
